/*
 * This file is part of QuickCPP.
 * (c) Copyright 2011 Jie Wang(twj31470952@gmail.com)
 *
 * QuickCPP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * QuickCPP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with QuickCPP.  If not, see <http://www.gnu.org/licenses/>.
 */
 
//==============================================================================
//
// $Revision: 2 $
// $Date: 2011-02-22 06:59:58 +0000 (Tue, 22 Feb 2011) $
//
//==============================================================================

#ifndef QC_BASE_Win32Exception_h
#define QC_BASE_Win32Exception_h

#ifndef QC_BASE_DEFS_h
#include "defs.h"
#endif //QC_BASE_DEFS_h

#ifndef WIN32
	#error this class is only available for the Win32 build
#endif

#include "OSException.h"
#include "QcCore/base/winincl.h"

QC_BASE_NAMESPACE_BEGIN

class QC_BASE_PKG Win32Exception : public OSException
{
public:
	Win32Exception(DWORD errCode);
	Win32Exception(DWORD errCode, const String& message);
	
	virtual String getExceptionType() const {return QC_T("Win32Exception");}
};

QC_BASE_NAMESPACE_END

#endif //QC_BASE_Win32Exception_h
